import { ErrorBlock, Space, Button } from 'antd-mobile'
import {useHistory } from 'react-router'

export default function NotFound() {
    const history =  useHistory()
    return <ErrorBlock title="你要的对象不见了" description="请换一个试试" fullPage>
        <Space>
            <Button color='primary' onClick={ ()=>history.push('/')}>返回首页</Button>
            <Button color='warning' onClick={ ()=>history.go(-1)}>后退一夜</Button>
        </Space>
    </ErrorBlock>
}
